﻿using System;
using System.Collections.Generic;

using Moe.ECamel.Client.ServiceProxies;
using Moe.ECamel.Common.Entities;

namespace Moe.ECamel.Client.Controllers
{
	public class MailMessagesController : EntityController<MailMessage>
	{
		public MailMessagesController(int userId)
			: base(userId)
		{
		}

		protected override IList<MailMessage> LoadList()
		{
			using (var serviceProxy = new MailMessageServiceProxy())
			{
				return serviceProxy.GetUserMailMessages(ParentEntityId);
			}
		}
	}
}
